package com.flycms.module.solution.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.flycms.module.solution.model.SolutionPartner;

/**
 *
 * <br/>Copyright 2020
 * <br/>All rights reserved
 * @author 沁言訫語
 * @version 2020年3月10日
 * @Date 2020年3月10日
 */

@Repository
public interface SolutionPartnerDao {

    int addSolutionPartner(SolutionPartner solutionPartner);
    
    int updateSolutionPartner(SolutionPartner solutionPartner);
    
    int addSolutionPartners(@Param("partners") List<SolutionPartner> solutionPartner,
            @Param("solutionId") Integer solutionId);
    
    int removeSolutionPartners(@Param("solutionId") Integer solutionId,
            @Param("partnerId") Integer partnerId);
    
    List<SolutionPartner> getSolutionPartnerList(
            @Param("solutionId") Integer solutionId,
            @Param("pageIndex") Integer pageIndex,
            @Param("pageSize") Integer pageSize);
    
    int getSolutionPartnerCount(@Param("solutionId") Integer solutionId);
    
}
